package Callable;

import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;

public class Text {
    public static void main(String[] args) throws ExecutionException, InterruptedException {
        FutureTask<String> futureTask = new FutureTask<>(new Callable(1000));
        Thread t = new Thread(futureTask);
        t.start();
        System.out.println(futureTask.get());
    }
}
